/**
 * Created by Freeman on 2016/7/1.
 */
"use strict";

import {GET_TAG_LIST_FAILURE,GET_TAG_LIST_SUCCESS} from '../types'

const state = {
    items:[]
}
const mutations = {
    [GET_TAG_LIST_SUCCESS](state,action){
        state.items = action.tagList
    },
    [GET_TAG_LIST_FAILURE](state){
        state.items = []
    },
}

export default {
    state,
    mutations
}